package com.paas.form.core.element.control.impl.searchItem;

import com.paas.form.core.element.control.FormItem;
import com.paas.form.core.element.field.FieLdsModel;
import com.paas.form.core.element.jsContent.ScriptContent;
import lombok.Data;


@Data
public class PfAddress implements FormItem {
    private FieLdsModel field;
    private String htmlType;
    public static final String PF_ADDRESS ="<pfAddress v-model=\"${formObject}.${field.vModel}\" placeholder=\"请选择${field.config.label}\"\n" +
            "                :level=\"${field.level}\" class=\"item\" clearable />";
    public PfAddress(FieLdsModel field,String htmlType){
        this.field = field;
        this.htmlType = htmlType;

    }


    @Override
    public String makeVue() {
        return PF_ADDRESS;
    }

    @Override
    public ScriptContent makeJs() {
        return null;
    }
}
